@import './scss/variables';
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background-color: #f2f2f2;
}

a {
  font-weight: 500;
  color: #353535;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body,
input,
label,
select,
option,
textarea,
button,
fieldset,
legend,
td,
th,
caption {
  margin: 0;
  padding: 0;
  color: #000;
  font-size: 12px;
  font-family: '思源黑体', 'Microsoft YaHei', 'PingFang SC', Helvetica, 'Roboto',
    Arial, sans-serif;
  box-sizing: border-box;
}
img {
  display: block;
}
.myInput {
  border-radius: 0;
  border: '0 none';
  background-color: #f5f6f7;
}
.container {
  width: 1215px;
  margin: 85px auto 0;
  min-height: 500px;
  background-color: #f8f8f8;
  box-shadow: $shadow;
  padding: 35px 0;
}
// 媒体查询，在移动下
@media screen and (max-width: 768px) {
  .container {
    width: 86.667vw;
    margin: 9.3333vw auto 0;
    min-height: 12vw;
    padding: 5.333vw 0;
  }
}
/* 
body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
} */

.copyright {
  width: 100%;
  height: 240px;
  background-color: #151515;
  color: #c9c3c3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: fixed;
  bottom: -240px;
  // transition: all .3s;
  left: 0;
  .copyright-btn {
    width: 250px;
    height: 60px;
    position: absolute;
    right: 14px;
    top: -60px;
    background-color: $red;
    cursor: pointer;
    font-size: 30px;
    align-items: center;
    justify-content: center;
    display: flex;
    span {
      color: #fff;
      margin-right: 5px;
    }
  }
  .nav {
    display: flex;
    justify-content: center;
    a {
      color: #c9c3c3;
      margin-left: 10px;
    }
  }
  .line {
    background-color: #c9c3c3;
    width: 1220px;
    height: 2px;
    margin: 10px 0;
  }
  .content {
    text-align: center;
  }
}
// 添加媒体查询，判断移动端还是pc端
.kefu {
  width: 101px;
  height: 101px;
  position: fixed;
  top: 500px;
  left: 50%;
  margin-left: 646px;
}
@media screen and (max-width: 768px) {
  .kefu {
    width: 9.0667vw;
    height: 9.0667vw;
    left: 84.88vw;
    margin-left: 0;
    top: 30vh;
    img {
      width: 100%;
      height: 100%;
    }
  }
}
// 退出栏
.contentTitle {
  font-size: 22px;
  display: flex;
  justify-content: end;
  align-items: center;
  height: 65px;
  background-color: #f2f2f2;
  color: $red;
  padding-right: 10px;
  margin: 0 35px;
  span {
    margin-right: 10px;
  }
}
// 移动端
@media screen and (max-width: 768px) {
  .contentTitle {
    font-size: 2.9333vw;
    height: 8.667vw;
    padding-right: 1.333vw;
    margin: 0 4.667vw;
    justify-content: center;
    span {
      margin-right: 1.3333vw;
    }
    img {
      width: 2.8vw;
    }
  }
}

// 移动端首页
.mobileTopBanner {
  width: 100vw;
  // box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
  img {
    height: 40.266vw;
  }
}
.mobileTopNav {
  width: 92.667vw;
  height: 7.333vw;
  position: fixed;
  top: 2vh;
  left: 0;
  right: 0;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.73);

  box-sizing: border-box;
  display: flex;
  // justify-content: space-between;
  align-items: center;
  z-index: 9999;
  .navItem a {
    padding: 0 2.8vw;
    line-height: 7.333vw;
    color: #333333;
    font-size: 3.333vw;
    position: relative;
    box-sizing: border-box;
  }
  div {
    margin-left: 3vw;
  }
  .navItem.on a {
    display: block;
    color: $red;
    border-bottom: 2px solid $red;
  }
}

.mobileProductList {
  display: flex;
  // 自动换行
  flex-wrap: wrap;
  // justify-content: space-evenly;
  margin-top: 6.4vw;
  margin-bottom: 4vw;
  padding-bottom: 1.333vw;
  .mobileProductItem {
    width: 32.8vw;
    height: 37.333vw;
    margin-left: 7.022vw;
    margin-bottom: 5.333vw;
    background-color: #f2f2f2;
    border: 1px solid #dedede;
    padding: 1.333vw;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    &:hover {
      transform: translateY(-6px);
      box-shadow: $shadow;
    }
    .mobileProductImg {
      width: 100%;
      img {
        width: 100%;
      }
    }
    .mobileProductInfo {
      font-size: 2.667vw;
      font-weight: bold;
      height: 6vw;
      line-height: 6vw;
    }
    .mobileProductDiscount {
      color: $red;
      font-size: 2.133vw;
      border: 1px solid $red;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .mobileProductPrice {
      color: $red;
      font-size: 4vw;
      font-weight: bold;
    }
    .mobileProductOriginPrice {
      color: #9a9a9a;
      font-size: 2.1333vw;
      text-decoration: line-through;
    }
    // 溢出内容
    .mobileProductSub {
      width: 9.887vw;
      height: 14.4vw;
      position: absolute;
      left: -1.4667vw;
      top: -1.3333vw;
      background: url(./assets/icon_bg.png) no-repeat;
      background-size: 100% 100%;
      text-align: left;
      span {
        font-weight: bold;
        color: #fff;
        font-size: 3.733vw;
        display: block;
        transform: rotate(-45deg);
        padding-top: 1.4vw;
      }
    }
  }
}
// 头像
.mobileGameIcon {
  width: 12.53vw;
  height: 12.53vw;
  position: absolute;
  top: 34vw;
  left: 50%;
  margin-left: -6.26vw;
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
  border-radius: 10px;
  box-shadow: $shadow;
  img {
    width: 100%;
    height: 100%;
  }
}
// 登录
.mobileLoginWrap {
  width: 78.667vw;
  // height: 49.333vw;
  padding-bottom: 0.1vw;
  margin: 10.4vw auto;
  background-color: #fff;
  box-shadow: $shadow;
  .loginTitle {
    width: 100%;
    height: 10vw;
    background: #ececec;
    display: flex;
    align-items: center;
    justify-content: center;
    img {
      width: 4.667vw;
    }
    span {
      font-size: 4vw;
      font-weight: bold;
      margin-left: 1.333vw;
    }
  }
  .formWrap {
    margin: 4.933vw;
    margin-bottom: 6vw;
    .myInput {
      height: 4.933vw;
      // font-size: 12px;
    }
    .desc {
      font-size: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-top: -3vw;
      i {
        width: 14px;
        height: 14px;
        border: 2px solid #dedede;
        border-radius: 50%;
        margin-right: 5px;
      }
    }
  }
}

.mobileRightWrap {
  width: 86.667vw;
  margin: 0 auto 35vw;
  .mobileRightContainer {
    box-shadow: $shadow;
    .mobileRightTitle {
      display: flex;
      font-size: 4vw;
      font-weight: bold;
      justify-content: center;
      align-items: center;
      height: 13.6vw;
      border-bottom: 1px solid #dedede;
      background-color: #ececec;
    }
    .mobileRightContent {
      background-color: #fff;
      .mobileRightActive {
        justify-content: center;
        display: flex;
        height: 95px;
        align-items: center;
      }
      .mobileDollarIcon {
        display: block;
        width: 4.533vw;
        height: 4.533vw;
        border-radius: 50%;
        background-color: #333;
        color: #fff;
        text-align: center;
        line-height: 4.533vw;
        font-size: 4vw;
      }
      .mobileText {
        font-size: 4vw;
        font-weight: bold;
        margin-left: 1.333vw;
      }
      .mobileDescription {
        font-size: 2.667vw;
        color: #828282;
        line-height: 3.733vw;
        text-align: center;
      }
    }
  }
}

// 购物车
.mobileShoppingCart {
  height: 30vw;
  width: 86.667vw;
  left: 50%;
  margin-left: -43.333vw;
  background-color: #fff;
  position: fixed;
  bottom: 0;
  padding: 4vw;
  box-shadow: $shadow;
  .text {
    width: 100%;
    height: 100%;
    border: #333;
    border: $grayBorder;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.667vw;
    .total {
      display: flex;
      align-items: center;
      span {
        &:nth-child(1) {
          font-size: 4vw;
          font-weight: bold;
        }
        &:nth-child(2) {
          font-size: 4vw;
          font-weight: bold;
          margin-left: 1.333vw;
          position: relative;
          s {
            position: absolute;
            right: 0;
            bottom: -2.667vw;
            font-size: 2.133vw;
            font-weight: normal;
            color: #9a9a9a;
          }
        }
        &:nth-child(3) {
          padding: 0 2.667px;
          height: 3.333vw;
          line-height: 3.333vw;
          text-align: center;
          color: #fff;
          font-size: 2.133vw;
          margin-left: 1.333vw;
          background-color: $bgColor;
        }
      }
    }
    button {
      width: 25.333vw;
      height: 6.667;
      background-color: $bgColor;
      font-size: 4vw;
      font-weight: 400;
      border: 0 none;
      color: #fff;
      cursor: pointer;
    }
  }
}

.mobileCopyright {
  width: 100%;
  height: 43.6vw;
  background-color: #151515;
  color: #c9c3c3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: fixed;
  bottom: -43.6vw;
  font-size: 2.1333vw;
  transition: all 0.3s;
  left: 0;
  .copyright-btn {
    width: 33.3333vw;
    height: 8vw;
    position: absolute;
    right: 6.6667vw;
    top: -8vw;
    background-color: $red;
    cursor: pointer;
    font-size: 4vw;
    align-items: center;
    justify-content: center;
    display: flex;
    span {
      color: #fff;
      margin-right: 5px;
    }
  }
  .nav {
    display: flex;
    justify-content: center;
    a {
      color: #c9c3c3;
      margin-left: 10px;
    }
  }
  .line {
    background-color: #c9c3c3;
    width: 49.333vw;
    height: 2px;
    margin: 1.333vw 0;
  }
  .content {
    text-align: center;
  }
}
